package com.liu;

import com.liu.qqRobot.official.job.SyncItemTendencyJob;
import com.liu.qqRobot.poke.job.SyncPokeJob;
import com.liu.qqRobot.poke.job.SyncPokeSkillJob;
import com.liu.qqRobot.q.job.SyncGroupUserJob;
import com.liu.qqRobot.wm.job.SyncItemJob;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class StartPojectRunTask implements ApplicationRunner {

    @Resource
    private SyncItemTendencyJob syncItemTendencyJob;

    @Resource
    private SyncPokeJob syncPokeJob;

    @Resource
    private SyncPokeSkillJob syncPokeSkillJob;

    @Resource
    private SyncGroupUserJob syncGroupUserJob;

    @Resource
    private SyncItemJob syncItemJob;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("服务启动成功，开始执行初始化数据");
//        syncItemTendencyJob.syncItemTendency();
//        syncPokeJob.syncPoke();
//        syncPokeSkillJob.syncPokeSkill();
//        syncGroupUserJob.syncGroupUser();
//        syncItemJob.syncItem();
//        syncItemJob.syncLich();
//        syncItemJob.syncRiven();
//        syncItemJob.syncSister();
        log.info("服务启动成功，结束执行初始化数据");
    }

}
